<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: Logger Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Compute Library
   &#160;<span id="projectnumber">18.05</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.xhtml"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarm__compute_1_1logging_1_1_logger.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Logger Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a> class.  
 <a href="classarm__compute_1_1logging_1_1_logger.xhtml#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="core_2utils_2logging_2_logger_8h_source.xhtml">Logger.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a421744d0932b362cbff55c07488c1356"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a421744d0932b362cbff55c07488c1356">Logger</a> (std::string <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a37627d5d5bba7f4a8690c71c2ab3cb07">name</a>, <a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a>, std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt; printer)</td></tr>
<tr class="memdesc:a421744d0932b362cbff55c07488c1356"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default Constructor.  <a href="#a421744d0932b362cbff55c07488c1356">More...</a><br /></td></tr>
<tr class="separator:a421744d0932b362cbff55c07488c1356"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01f79c5a395126e28073498412c67df6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a01f79c5a395126e28073498412c67df6">Logger</a> (std::string <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a37627d5d5bba7f4a8690c71c2ab3cb07">name</a>, <a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&gt; printers={})</td></tr>
<tr class="memdesc:a01f79c5a395126e28073498412c67df6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default Constructor.  <a href="#a01f79c5a395126e28073498412c67df6">More...</a><br /></td></tr>
<tr class="separator:a01f79c5a395126e28073498412c67df6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcbbbc3fb4ed100c21f274a9862c63ae"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#afcbbbc3fb4ed100c21f274a9862c63ae">Logger</a> (std::string <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a37627d5d5bba7f4a8690c71c2ab3cb07">name</a>, <a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a>, std::vector&lt; std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&gt; printers, std::vector&lt; std::unique_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_i_decorator.xhtml">IDecorator</a> &gt;&gt; decorators)</td></tr>
<tr class="memdesc:afcbbbc3fb4ed100c21f274a9862c63ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default Constructor.  <a href="#afcbbbc3fb4ed100c21f274a9862c63ae">More...</a><br /></td></tr>
<tr class="separator:afcbbbc3fb4ed100c21f274a9862c63ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75f49292d95d30b860d000005cf179a1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a75f49292d95d30b860d000005cf179a1">Logger</a> (<a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:a75f49292d95d30b860d000005cf179a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow instances of this class to be moved.  <a href="#a75f49292d95d30b860d000005cf179a1">More...</a><br /></td></tr>
<tr class="separator:a75f49292d95d30b860d000005cf179a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7f3dbfbd2426b4874750f08bd23bd7f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#aa7f3dbfbd2426b4874750f08bd23bd7f">Logger</a> (const <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;)=delete</td></tr>
<tr class="memdesc:aa7f3dbfbd2426b4874750f08bd23bd7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent instances of this class from being copied (As this class contains pointers)  <a href="#aa7f3dbfbd2426b4874750f08bd23bd7f">More...</a><br /></td></tr>
<tr class="separator:aa7f3dbfbd2426b4874750f08bd23bd7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab18882a3175cd53305509643329a400a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#ab18882a3175cd53305509643329a400a">operator=</a> (const <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;)=delete</td></tr>
<tr class="memdesc:ab18882a3175cd53305509643329a400a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent instances of this class from being copied (As this class contains pointers)  <a href="#ab18882a3175cd53305509643329a400a">More...</a><br /></td></tr>
<tr class="separator:ab18882a3175cd53305509643329a400a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f823d85882db15d1dd140a21ca391e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a3f823d85882db15d1dd140a21ca391e2">operator=</a> (<a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:a3f823d85882db15d1dd140a21ca391e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow instances of this class to be moved.  <a href="#a3f823d85882db15d1dd140a21ca391e2">More...</a><br /></td></tr>
<tr class="separator:a3f823d85882db15d1dd140a21ca391e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50292ee16d3334856912eb89cffbcf83"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a50292ee16d3334856912eb89cffbcf83">log</a> (<a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a>, const std::string &amp;msg)</td></tr>
<tr class="memdesc:a50292ee16d3334856912eb89cffbcf83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logs a message.  <a href="#a50292ee16d3334856912eb89cffbcf83">More...</a><br /></td></tr>
<tr class="separator:a50292ee16d3334856912eb89cffbcf83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2359a792f2d9a5c74d58017912a9fe24"><td class="memTemplParams" colspan="2">template&lt;typename... Ts&gt; </td></tr>
<tr class="memitem:a2359a792f2d9a5c74d58017912a9fe24"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a2359a792f2d9a5c74d58017912a9fe24">log</a> (<a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a>, const std::string &amp;fmt, Ts &amp;&amp;...args)</td></tr>
<tr class="memdesc:a2359a792f2d9a5c74d58017912a9fe24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logs a formatted message.  <a href="#a2359a792f2d9a5c74d58017912a9fe24">More...</a><br /></td></tr>
<tr class="separator:a2359a792f2d9a5c74d58017912a9fe24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41691397975dfad51e3a2f6b55aef749"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a41691397975dfad51e3a2f6b55aef749">set_log_level</a> (<a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a>)</td></tr>
<tr class="memdesc:a41691397975dfad51e3a2f6b55aef749"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets log level of the logger.  <a href="#a41691397975dfad51e3a2f6b55aef749">More...</a><br /></td></tr>
<tr class="separator:a41691397975dfad51e3a2f6b55aef749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7de2e3a2078977fcf1ba9132e829c0e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a> () const </td></tr>
<tr class="memdesc:ae7de2e3a2078977fcf1ba9132e829c0e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns logger's log level.  <a href="#ae7de2e3a2078977fcf1ba9132e829c0e">More...</a><br /></td></tr>
<tr class="separator:ae7de2e3a2078977fcf1ba9132e829c0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37627d5d5bba7f4a8690c71c2ab3cb07"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a37627d5d5bba7f4a8690c71c2ab3cb07">name</a> () const </td></tr>
<tr class="memdesc:a37627d5d5bba7f4a8690c71c2ab3cb07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns logger's name.  <a href="#a37627d5d5bba7f4a8690c71c2ab3cb07">More...</a><br /></td></tr>
<tr class="separator:a37627d5d5bba7f4a8690c71c2ab3cb07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a5b7c4d38c6f9fd1550c62441b69648"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#a1a5b7c4d38c6f9fd1550c62441b69648">add_printer</a> (std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt; printer)</td></tr>
<tr class="memdesc:a1a5b7c4d38c6f9fd1550c62441b69648"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a printer to the logger.  <a href="#a1a5b7c4d38c6f9fd1550c62441b69648">More...</a><br /></td></tr>
<tr class="separator:a1a5b7c4d38c6f9fd1550c62441b69648"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca0de1bc76119d77831c0b1d58a20f4d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml#aca0de1bc76119d77831c0b1d58a20f4d">add_decorator</a> (std::unique_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_i_decorator.xhtml">IDecorator</a> &gt; decorator)</td></tr>
<tr class="memdesc:aca0de1bc76119d77831c0b1d58a20f4d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds a log message decorator to the logger.  <a href="#aca0de1bc76119d77831c0b1d58a20f4d">More...</a><br /></td></tr>
<tr class="separator:aca0de1bc76119d77831c0b1d58a20f4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a> class. </p>

<p>Definition at line <a class="el" href="core_2utils_2logging_2_logger_8h_source.xhtml#l00042">42</a> of file <a class="el" href="core_2utils_2logging_2_logger_8h_source.xhtml">Logger.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a421744d0932b362cbff55c07488c1356"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>log_level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&#160;</td>
          <td class="paramname"><em>printer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Name of the logger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">log_level</td><td><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a> log level </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">printer</td><td><a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml" title="Base printer class to be inherited by other printer classes. ">Printer</a> to push the messages </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a01f79c5a395126e28073498412c67df6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>log_level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>printers</em> = <code>{}</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Name of the logger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">log_level</td><td><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a> log level </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">printers</td><td>Printers to push the messages </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afcbbbc3fb4ed100c21f274a9862c63ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>log_level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>printers</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::unique_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_i_decorator.xhtml">IDecorator</a> &gt;&gt;&#160;</td>
          <td class="paramname"><em>decorators</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Default Constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td>Name of the logger </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">log_level</td><td><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a> log level </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">printers</td><td>Printers to push the messages </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">decorators</td><td>Message decorators, which append information in the logged message </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a75f49292d95d30b860d000005cf179a1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allow instances of this class to be moved. </p>

</div>
</div>
<a class="anchor" id="aa7f3dbfbd2426b4874750f08bd23bd7f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prevent instances of this class from being copied (As this class contains pointers) </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aca0de1bc76119d77831c0b1d58a20f4d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void add_decorator </td>
          <td>(</td>
          <td class="paramtype">std::unique_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_i_decorator.xhtml">IDecorator</a> &gt;&#160;</td>
          <td class="paramname"><em>decorator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a log message decorator to the logger. </p>
<dl class="section warning"><dt>Warning</dt><dd>Not thread-safe</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">decorator</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1a5b7c4d38c6f9fd1550c62441b69648"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void add_printer </td>
          <td>(</td>
          <td class="paramtype">std::shared_ptr&lt; <a class="el" href="classarm__compute_1_1logging_1_1_printer.xhtml">Printer</a> &gt;&#160;</td>
          <td class="paramname"><em>printer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds a printer to the logger. </p>
<dl class="section warning"><dt>Warning</dt><dd>Not thread-safe</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">printer</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a50292ee16d3334856912eb89cffbcf83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>log_level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Logs a message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">log_level</td><td>Log level of the message </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">msg</td><td>Message to log </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2359a792f2d9a5c74d58017912a9fe24"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void log </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>log_level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Ts &amp;&amp;...&#160;</td>
          <td class="paramname"><em>args</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Logs a formatted message. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">log_level</td><td>Log level of the message </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fmt</td><td>Message format </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">args</td><td>Message arguments </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="core_2utils_2logging_2_logger_8h_source.xhtml#l00162">162</a> of file <a class="el" href="core_2utils_2logging_2_logger_8h_source.xhtml">Logger.h</a>.</p>

<p>References <a class="el" href="arm__compute_2core_2utils_2logging_2_helpers_8h_source.xhtml#l00048">arm_compute::logging::string_with_format()</a>.</p>
<div class="fragment"><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;{</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="comment">// Return if message shouldn&#39;t be logged</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;    <span class="comment">// i.e. if log level does not match the logger&#39;s</span></div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keywordflow">if</span>(!is_loggable(<a class="code" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a>))</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    {</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    }</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    <span class="comment">// Print message to all printers</span></div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    print_all(create_log_msg(<a class="code" href="namespacearm__compute_1_1logging.xhtml#a9dd6c32b3cab7dfb3e20c0800969e795">string_with_format</a>(fmt, args...), <a class="code" href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">log_level</a>));</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;}</div><div class="ttc" id="namespacearm__compute_1_1logging_xhtml_a9dd6c32b3cab7dfb3e20c0800969e795"><div class="ttname"><a href="namespacearm__compute_1_1logging.xhtml#a9dd6c32b3cab7dfb3e20c0800969e795">arm_compute::logging::string_with_format</a></div><div class="ttdeci">std::string string_with_format(const std::string &amp;fmt, Ts &amp;&amp;...args)</div><div class="ttdoc">Create a string given a format. </div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2utils_2logging_2_helpers_8h_source.xhtml#l00048">Helpers.h:48</a></div></div>
<div class="ttc" id="classarm__compute_1_1logging_1_1_logger_xhtml_ae7de2e3a2078977fcf1ba9132e829c0e"><div class="ttname"><a href="classarm__compute_1_1logging_1_1_logger.xhtml#ae7de2e3a2078977fcf1ba9132e829c0e">arm_compute::logging::Logger::log_level</a></div><div class="ttdeci">LogLevel log_level() const </div><div class="ttdoc">Returns logger&amp;#39;s log level. </div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ae7de2e3a2078977fcf1ba9132e829c0e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a> log_level </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns logger's log level. </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a>'s log level </dd></dl>

</div>
</div>
<a class="anchor" id="a37627d5d5bba7f4a8690c71c2ab3cb07"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns logger's name. </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml" title="Logger class. ">Logger</a>'s name </dd></dl>

</div>
</div>
<a class="anchor" id="ab18882a3175cd53305509643329a400a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a>&amp; operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prevent instances of this class from being copied (As this class contains pointers) </p>

</div>
</div>
<a class="anchor" id="a3f823d85882db15d1dd140a21ca391e2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a>&amp; operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Allow instances of this class to be moved. </p>

</div>
</div>
<a class="anchor" id="a41691397975dfad51e3a2f6b55aef749"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void set_log_level </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespacearm__compute_1_1logging.xhtml#aca1fd1d8935433e6ba2e3918214e07f9">LogLevel</a>&#160;</td>
          <td class="paramname"><em>log_level</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets log level of the logger. </p>
<dl class="section warning"><dt>Warning</dt><dd>Not thread-safe</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">log_level</td><td>Log level to set </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>arm_compute/core/utils/logging/<a class="el" href="core_2utils_2logging_2_logger_8h_source.xhtml">Logger.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1logging.xhtml">logging</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1logging_1_1_logger.xhtml">Logger</a></li>
    <li class="footer">Generated on Wed May 23 2018 11:36:43 for Compute Library by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
